[Solved]: In C++, Write a function int icompare (std::string

您所在的位置:网站首页 second c++ [Solved]: In C++, Write a function int icompare (std::string

[Solved]: In C++, Write a function int icompare (std::string

#[Solved]: In C++, Write a function int icompare (std::string| 来源: 网络整理| 查看: 265

In C++, Write a function int icompare (std::string first, std::string second) which returns a negative number if the first string comes before the second alphabetically, returns 0 if both strings are equal, and a positive number if the second string comes after the second alphabetically. This function should compare strings ignoring case differences, i.e. "Hello" == "hello" or in other words icompare("Hello", "hello") == 0.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3